package snapex.core;

import org.springframework.validation.BindingResult;

import lombok.Getter;
import lombok.Setter;

@Getter @Setter
public class ValidationFailureException extends SnapexApplicationException {

	private BindingResult bindingResult;
	 
	public ValidationFailureException(String message, Throwable cause) {
		super(message, cause);
	}

	public ValidationFailureException(String message) {
		super(message);
	}
	
	public ValidationFailureException(BindingResult bindingResult) {
		super("binding error");
		this.bindingResult = bindingResult;
	}
	
	public ValidationFailureException(BindingResult bindingResult, String message) {
		super(message);
		this.bindingResult = bindingResult;
	}
}
